package com.stream.topic;//package com.stream.topic;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.stereotype.Component;
//
//import java.util.function.Consumer;
//
///**
// * <p>
// *
// * </p>
// *
// * @author gzj
// * @since 2022/10/11
// */
//@Component
//public class ConsumerTest {
//    @Bean
//    Consumer<String> testTopic(){
//        return str -> {
//            System.out.println("我是消费者0，我收到了消息："+str);
//        };
//    }
//
////    @Bean
////    java.util.function.Consumer<String> testTopic1(){
////        return str -> {
////            System.out.println("我是消费者1，我收到了消息："+str);
////        };
////    }
//}
